<div class="box box-primary">
    <?php echo form_open('', 'role="form"'); ?>
    <div class="box-body">
        <div class="form-group">
            <label for="ad_name">广告名称</label>
            <input type="text" class="form-control" id="ad_name" name="ad_name" placeholder="Ad Name"
                   value="<?php echo set_value('ad_name', ($ad ? $ad->ad_name : '')); ?>">
        </div>
        <div class="form-group">
            <label for="ad_code">广告代码</label>
            <textarea name="ad_code" class="form-control" rows="15"
                      id="ad_code"><?php echo set_value('ad_code', ($ad ? $ad->ad_code : '')); ?></textarea>
        </div>
    </div>

    <div class="box-footer">
        <button type="submit" class="btn btn-primary">提交</button>
    </div>
    <?php echo form_close(); ?>
</div>

